home *** CD-ROM | disk | FTP | other *** search
Wrap
<HTML> <HEAD> <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css"> </HEAD> <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5" onload="onDisabledCheck();"> <script language="Javascript"> //LOCALIZATION STRINGS var alias_message = "If you continue you will lose any unsaved changes"; var _strNameAlert = "Please limit the name to 100 characters."; var _strFullNameAlert = "Please limit the full name to 100 characters."; var _strDescAlert = "Please limit the description to 256 characters."; var _strLastAliasWarning = "Reassigning the only alias of this user will remove this user and its associated home folder from the system. Continue with reassign?" </script> <SCRIPT> var alias_count =%2; var hasChanged = false; var link = new Array(); %3 function onAssignAlias() { if (hasChanged) { if(!confirm(alias_message)) return; } parent.parent.location = "%4"; } function changed() { hasChanged = true; } function onMoveAlias(link_index) { if (hasChanged) { if(!confirm(alias_message)) return; } if (alias_count == 1) { if(!confirm(_strLastAliasWarning)) return; } parent.parent.location = link[link_index]; } function onSubmit() { // check for account name, full name and description var strAccountName = document.forms.user_prop.userName.value; var strFullName = document.forms.user_prop.userFullName.value; var strDesc = document.forms.user_prop.userDesc.value; if (strAccountName.length > 100) { alert(_strNameAlert); return; } if (strFullName.length > 100) { alert(_strFullNameAlert); return; } if (strDesc.length >= 256) { alert(_strDescAlert); return; } // Do the disabled aliases var items = ""; var first = true; for(var i = 0; i < alias_count; i++) { if(!document.user_prop.elements["check"+i].checked) { if (!first) { items += "+"; } else { first = false; } items += document.user_prop.elements["check"+i].value; } } document.user_prop.disabled_aliases.value = items; // Submit the properies document.user_prop.submit(); } function onCancel() { document.user_prop.reset(); } function onDisabledCheck() { // Check to see if we can enable the account disabled flag for(var i = 0; i < alias_count; i++) { if (document.user_prop.elements["check"+i].checked) { return; } } // Got to here all aliases are disabled document.user_prop.account_disabled.checked = true; } function onDisabledClick() { // Determine whether the check box is actually checked if (document.user_prop.account_disabled.checked) disabled = true; else disabled = false; // Run through the list of alias checkboxes for(var i = 0; i < alias_count; i++) { if(document.user_prop.elements["check"+i].checked) { if (disabled) { document.user_prop.elements["check"+i].checked = false; } } else { if (!disabled) { document.user_prop.elements["check"+i].checked = true; } } } hasChanged = true; } </SCRIPT> <FORM action="%5" method="post" name="user_prop" target="target_frame"> <table> <tr> <td class="list">Account Name:</td> <td class="list"><input tabindex=1 name="userName" size=40 onchange="changed()" value="%6"></td> </tr> <tr> <td class="list">Full Name:</td> <td class="list"><input tabindex=2 name="userFullName" size=40 onchange="changed()" value="%7"></td> </tr> <tr> <td class="list">Description:</td> <td class="list"><textarea tabindex=3 wrap="virtual" name="userDesc" rows="7" cols="40" onchange="changed()">%8</textarea></td> </tr> </table> <BR> Home Folder: <a class="list" tabindex=4 target="target_frame" href="%9">%10</a> <BR> <BR> <BR> Connection Type: <table CELLSPACING="0" border=0 FRAME=box CELLPADDING="5"> <tr> <td class="list"><input tabindex=10 type=radio name="user_type" value="0" onclick="changed()" %11><td class="list"> Concurrent User </td> </tr> <tr> <td class="list"><input tabindex=11 type=radio name="user_type" value="1" onclick="changed()" %12><td class="list"> Named User </td> </tr> </table> <BR> <input type=checkbox tabindex=12 name="account_disabled" onClick="onDisabledClick()"> Account is disabled <table CELLSPACING="5" width=80%> <tr> <td class="list" width=40%> Alias: </td> <td class="list" width=25%> Authentication Type: </td> <td class="list" width=10%> Enabled: </td> <td class="list" width=25% align=right> <table cellpadding=0 border=0> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:onAssignAlias()" tabindex=-1>Assign Alias...</a></div> </td> </tr> </table> </td> </tr> <tr> <td class="list" colspan = 4> <hr size=0> </td> </tr> %13 </table> <table align=center CELLPADDING="0" border=0 width=20%> <tr> <td><table cellpadding=0 border=0> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a tabindex=13 href="javascript:onSubmit()">Update</a></div> </td> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a tabindex=14 href="javascript:onCancel()">Reset</a></div> </td> </tr> </table></td> </tr> </table> <input type="hidden" name="disabled_aliases"> </form> </BODY> </HTML>